package cn.nexd.map.location.collector.listener;

import android.hardware.Sensor;

import cn.nexd.map.location.collector.bean.SensorDataResult;
import cn.nexd.map.location.utils.Log;


/**
 * DefaultSensorCollector create by codingfish at 15/5/4
 * TODO:
 *
 * @Version V1.0
 */
final class DefaultSensorCollectorResultListener implements SensorCollectorResultListener {
    @Override
    public void onSuccess(String scanId, SensorDataResult sensorDataResult) {
        String values = "";
        for (int i = 0, len = sensorDataResult.getValues().length; i < len; i++) {
            values = values + sensorDataResult.getValues()[i] + " ##  ";
        }
        Log.d(DefaultSensorCollectorResultListener.class.getSimpleName(), "\n" + "sensorName == " + sensorDataResult.getSensorName() + "\n sensorValues == " + values);
    }

    @Override
    public void onAccuracyChanged(String scanId, Sensor sensor, int accuracy) {
        Log.d(DefaultWifiCollectorListener.class.getSimpleName(), "## onAccuracyChanged");
    }

    @Override
    public void onFailed(String scanId, int faied_id, String message) {
        Log.d(DefaultWifiCollectorListener.class.getSimpleName(), "## onFailed");
    }
}
